package com.tony.pmp.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tony.pmp.model.entity.AttendRecordEntity;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * @Title: AttendRecordMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/09/10:05
 * @Description: 考勤记录
 */
@Mapper
public interface AttendRecordMapper extends BaseMapper<AttendRecordEntity> {

    /**
    * @Description: queryPage 获取考勤列表(分页，模糊查询)
    * @Param: [page, paramMap]
    * @return: java.util.List<com.tony.pmp.model.entity.AttendRecordEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/8/3 16:17
    */
    List<AttendRecordEntity> queryPage(IPage<AttendRecordEntity> page,@Param("paramMap") Map<String, Object> paramMap);

    /**
    * @Description: selectExportData 获取考勤列表(模糊查询)
    * @Param: [params]
    * @return: java.util.List<com.tony.pmp.model.entity.AttendRecordEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/8/4 11:47
    */
    List<AttendRecordEntity> selectExportData(Map<String, Object> params);

    int deleteByPrimaryKey(Integer id);

    int insert(AttendRecordEntity record);

    int insertSelective(AttendRecordEntity record);

    AttendRecordEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AttendRecordEntity record);

    int updateByPrimaryKey(AttendRecordEntity record);
}